# （1）定义一个字典变量，存放老师信息：姓名、体重、年龄等；
teacher_dict = {"name": "张柏芝", "sex": "女", "address": "台湾省", "age": 16}
# （2）给老师变量添加一个兴趣爱好；
teacher_dict['hobby'] = "喜欢上课"
print(teacher_dict)
# （3）思考：若给一个空字典添加2个元素，该怎么做？
stu_dict = {}
stu_dict['name'] = '李四'
stu_dict['age'] = 18
print(stu_dict)

# （2）试着删除字典的年龄元素；
del teacher_dict['age']
print(teacher_dict)
# teacher_dict.clear()
# print(teacher_dict)

teacher_dict['name'] = '迪丽热巴'
print(teacher_dict)
